//
//  XHMapViewController.m
//  testApp
//
//  Created by ColdMountain on 2017/4/5.
//  Copyright © 2017年 ColdMountain. All rights reserved.
//

#import "XHMapViewController.h"

#import <MAMapKit/MAMapKit.h>
#import <AMapSearchKit/AMapSearchKit.h>
#import <MapKit/MapKit.h>

@interface XHMapViewController ()
@property (weak, nonatomic) IBOutlet MAMapView *ui_mapView;

@end

@implementation XHMapViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self mapViewSetUp];
}

- (void)mapViewSetUp
{
    CLLocationCoordinate2D coords = CLLocationCoordinate2DMake(34.26667, 108.95000);
    self.ui_mapView.centerCoordinate = coords;
    MACoordinateRegion region;
    region.span.latitudeDelta = 25;
    region.span.longitudeDelta = 25;
    region.center.latitude = 34.26667;
    region.center.longitude = 108.95000;
    [self.ui_mapView setRegion:region];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
